package com.sxsy.datasource.bizimpl;

import com.sxsy.datasource.bean.HQJCBean;
import com.sxsy.datasource.biz.HqjcData;
import com.sxsy.datasource.mapper.HqjcDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class HqjcDataImpl implements HqjcData {
    @Autowired
    private HqjcDataMapper hqjcDataMapper;



    public void insertRtData(String MKBM, String KJMC, String BH, String CYSJ, String CYDD, float O2, float N2, float CH4, float CO2, float CO, float C2H4, float C2H6, float C2H2, float C3H8, float WXB, String Status) {
        hqjcDataMapper.insertRtData(MKBM,KJMC,BH,CYSJ,CYDD,O2,N2,CH4,CO2,CO,C2H4,C2H6,C2H2,C3H8,WXB,Status);
    }


    public void updateRtData(String MKBM, String KJMC, String BH, String CYSJ, String CYDD, float O2, float N2, float CH4, float CO2, float CO, float C2H4, float C2H6, float C2H2, float C3H8, float WXB, String Status) {
        hqjcDataMapper.updateRtData(MKBM,KJMC,BH,CYSJ,CYDD,O2,N2,CH4,CO2,CO,C2H4,C2H6,C2H2,C3H8,WXB,Status);
    }

    public void insertHisData(String MKBM, String KJMC, String BH, String CYSJ, String CYDD, float O2, float N2, float CH4, float CO2, float CO, float C2H4, float C2H6, float C2H2, float C3H8, float WXB, String Status) {
        hqjcDataMapper.insertHisData(MKBM,KJMC,BH,CYSJ,CYDD,O2,N2,CH4,CO2,CO,C2H4,C2H6,C2H2,C3H8,WXB,Status);
    }


    public List<HQJCBean> DoesKeyExit() {
        return hqjcDataMapper.DoesKeyExit();
    }
}
